import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import 'lib-flexible'
import FastClick from 'fastclick'
import VueScroller from 'vue-scroller'
import axios from 'axios';
import Vant from 'vant';
import 'vant/lib/index.css';
// import '@/css/_vw_func.scss';
import plugins from './util/plugins'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import qrcode from 'qrcode'
import './util/extension';


Vue.prototype.$qrcode = qrcode;//
Vue.use(ElementUI);
Vue.config.productionTip = false
FastClick.attach(document.body)
Vue.use(VueScroller)
Vue.prototype.axios = axios;
Vue.use(Vant);
Vue.prototype.$pub = plugins;//
router.beforeEach((to, from, next) => {
  document.title= to.meta.title || "每时每课"
  if (to.fullPath === "/custmoer") {
    localStorage.setItem("actbtn", false)
    store.active = false
  } else {
    localStorage.setItem("actbtn", true)
    store.active = true
  }
  next()
})


new Vue({
  // el:'#app',   //自动挂载
  router,
  store,
  render: h => h(App)
}).$mount('#app')
// .$mount('#app')    //手动挂载